.filter-container {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.filter-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) var(--spacing-2xl);
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: white;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.filter-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.filter-icon {
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.filter-container:focus-within .filter-icon {
  color: var(--primary-color);
}

.clear-button {
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: 50%;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-button:hover {
  color: var(--danger-color);
  background-color: rgba(239, 68, 68, 0.1);
}

.clear-button:not(.visible) {
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-container {
    max-width: none;
  }
}